/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package validatortest.view;

import validatortest.validator.FormControl;
import validatortest.validator.ValidatorFactory;

/**
 *
 * @author Habib
 */
public class Blok123 extends javax.swing.JPanel {

    /**
     * Creates new form Blok1
     */
    public Blok123() {
        initComponents();
        Integer[] a = {05,10,71};
        Integer[] b = {01,05,12,11,15,17,19};
        Integer[] bir1c={1,2,3};
        Integer[] d ={8,9,10};
        FormControl.getListForm().get(3).getText();
        b1r1.setDocument(ValidatorFactory.getDocument("constraint", a, "kode kabupaten salah"));
        b1r2.setDocument(ValidatorFactory.getDocument("constraint", b, "Kode kecamatan salah"));
        b1r8.setDocument(ValidatorFactory.getDocument("constraint",bir1c,"Isian salah"));
        b1r12.setDocument(ValidatorFactory.getDocument("depentSum",d,"cek jumlah"));
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLayeredPane1 = new javax.swing.JLayeredPane();
        b1r1 = new validatortest.component.TextField();
        b1r2 = new validatortest.component.TextField();
        b1r3 = new validatortest.component.TextField();
        b1r4 = new validatortest.component.TextField();
        b1r5 = new validatortest.component.TextField();
        b1r6 = new validatortest.component.TextField();
        b1r7 = new validatortest.component.TextField();
        b1r8 = new validatortest.component.TextField();
        b1r9 = new validatortest.component.TextField();
        b1r10 = new validatortest.component.TextField();
        b1r11 = new validatortest.component.TextField();
        b1r12 = new validatortest.component.TextField();
        b1r13 = new validatortest.component.TextField();
        jLabel1 = new javax.swing.JLabel();

        setLayout(new java.awt.BorderLayout());

        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLayeredPane1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        b1r1.setLength(2);
        jLayeredPane1.add(b1r1, new org.netbeans.lib.awtextra.AbsoluteConstraints(970, 450, 60, 30));

        b1r2.setLength(2);
        b1r2.setPosisi(1);
        jLayeredPane1.add(b1r2, new org.netbeans.lib.awtextra.AbsoluteConstraints(970, 500, 60, 30));

        b1r3.setLength(3);
        b1r3.setPosisi(2);
        jLayeredPane1.add(b1r3, new org.netbeans.lib.awtextra.AbsoluteConstraints(940, 540, 90, 30));

        b1r4.setLength(3);
        b1r4.setPosisi(3);
        jLayeredPane1.add(b1r4, new org.netbeans.lib.awtextra.AbsoluteConstraints(940, 580, 90, 30));

        b1r5.setLength(1);
        b1r5.setPosisi(4);
        jLayeredPane1.add(b1r5, new org.netbeans.lib.awtextra.AbsoluteConstraints(1010, 620, 30, 30));

        b1r6.setLength(5);
        b1r6.setPosisi(5);
        jLayeredPane1.add(b1r6, new org.netbeans.lib.awtextra.AbsoluteConstraints(880, 760, 150, 30));

        b1r7.setLength(2);
        b1r7.setPosisi(6);
        jLayeredPane1.add(b1r7, new org.netbeans.lib.awtextra.AbsoluteConstraints(980, 810, 60, 30));

        b1r8.setLength(1);
        b1r8.setPosisi(7);
        jLayeredPane1.add(b1r8, new org.netbeans.lib.awtextra.AbsoluteConstraints(1000, 850, 40, 30));

        b1r9.setLength(1);
        b1r9.setPosisi(8);
        jLayeredPane1.add(b1r9, new org.netbeans.lib.awtextra.AbsoluteConstraints(1000, 1060, 40, 30));

        b1r10.setLength(1);
        b1r10.setPosisi(9);
        jLayeredPane1.add(b1r10, new org.netbeans.lib.awtextra.AbsoluteConstraints(1000, 1100, 40, 30));

        b1r11.setLength(1);
        b1r11.setPosisi(10);
        jLayeredPane1.add(b1r11, new org.netbeans.lib.awtextra.AbsoluteConstraints(1000, 1140, 40, 30));

        b1r12.setLength(2);
        b1r12.setPosisi(11);
        jLayeredPane1.add(b1r12, new org.netbeans.lib.awtextra.AbsoluteConstraints(970, 1190, 70, 30));

        b1r13.setLength(4);
        b1r13.setPosisi(12);
        jLayeredPane1.add(b1r13, new org.netbeans.lib.awtextra.AbsoluteConstraints(700, 1300, 160, 30));

        jPanel1.add(jLayeredPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(-10, 0, 1050, 1500));

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/validatortest/view/P1.png"))); // NOI18N
        jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1108, -1));

        add(jPanel1, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private validatortest.component.TextField b1r1;
    private validatortest.component.TextField b1r10;
    private validatortest.component.TextField b1r11;
    private validatortest.component.TextField b1r12;
    private validatortest.component.TextField b1r13;
    private validatortest.component.TextField b1r2;
    private validatortest.component.TextField b1r3;
    private validatortest.component.TextField b1r4;
    private validatortest.component.TextField b1r5;
    private validatortest.component.TextField b1r6;
    private validatortest.component.TextField b1r7;
    private validatortest.component.TextField b1r8;
    private validatortest.component.TextField b1r9;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JPanel jPanel1;
    // End of variables declaration//GEN-END:variables
}
